From: Roland McGrath Date: Sat, 8 Jan 1994 22:55:04 +0000 (+0000) Subject: (report_file_error): Use strerror instead of sys_errlist. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~93531 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a1f17b2d6a7805b9ad9cf5f06f4e1f792b8b8c47;p=emacs.git (report_file_error): Use strerror instead of sys_errlist. --- diff --git a/src/fileio.c b/src/fileio.c index f46ffef0ad9..c462c27b97d 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -137,10 +137,7 @@ report_file_error (string, data) { Lisp_Object errstring; - if (errno >= 0 && errno < sys_nerr) - errstring = build_string (sys_errlist[errno]); - else - errstring = build_string ("undocumented error code"); + errstring = build_string (strerror (errno)); /* System error messages are capitalized. Downcase the initial unless it is followed by a slash. */